<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<script type="text/javascript">
       function Person(name,age,sex,isBoyfriend){
                this.name = name;
                this.age = age;
                this.sex = sex;
                this.isBoyfriend = isBoyfriend;
                this.say = function(){
                	alert(this.name+this.age+this.isBoyfriend+"说了自己天天得吃饭！")
                }
       }
       var person = new Person("小明","今年18岁","有男朋友","男朋友会说话");
       person.say()
	</script>
</body>
</html>